-
Notifications
You must be signed in to change notification settings - Fork 225
[1/N][CI] Move linting system to pre-commits hooks #1256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
3313968
to
b6b8bf3
Compare
0ff0fa9
to
e196c98
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
After consideration, I didn't add mypy lint to format.sh, but added |
Need a rebase after #1293 resolved |
@@ -18,8 +18,6 @@ | |||
name: 'test' | |||
|
|||
on: | |||
schedule: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we remove the schedule here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, currently this is a per PR check, we can enable push trigger in future
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1256 +/- ##
==========================================
+ Coverage 27.39% 27.41% +0.02%
==========================================
Files 56 56
Lines 6191 6270 +79
==========================================
+ Hits 1696 1719 +23
- Misses 4495 4551 +56
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: wangli <[email protected]> Signed-off-by: Yikun Jiang <[email protected]>
since we have new linting sys(typos), we don't need |
will enable |
Signed-off-by: wangli <[email protected]>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
What this PR does / why we need it?
Follow vllm-project/vllm lint way: https://github.com/vllm-project/vllm/blob/main/.pre-commit-config.yaml
Enable pre-commit to avoid some low level error AMAP.
This pr is one step of #1241, The purpose is make linting system more clear and convenient, on this step, Mainly did the following things: yapf, actionlint, ruff, typos, isort, mypy, png-lint, signoff-commit, enforce-import-regex-instead-of-re.
TODO:
need clean code, disable for now
need clean code, disable for now
need clean code, disable for now
Does this PR introduce any user-facing change?
Only developer UX change:
https://vllm-ascend--1256.org.readthedocs.build/en/1256/developer_guide/contributing.html#run-lint-locally
How was this patch tested?
CI passed with new added/existing test.
Co-authored-by: Yikun [email protected]
Co-authored-by: wangli [email protected]